package dao

import "821/inits"

func UserFind[T any](Data T, name string) error {
	return inits.DB.Debug().Where("name = ?", name).Find(&Data).Error
}
func UserList[T any](Data T, UserId int) error {
	return inits.DB.Debug().Where("bei_follow = ?", UserId).Find(&Data).Error
}
